<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<script>
    function logout(){
        let msg = "您确定要退出当前账号吗？";
        if (confirm(msg)===true){
            window.location ="/Gradle___com_example___stroeBackstage_1_0_SNAPSHOT_war/LogoutS;"
            return true;
        }else{
            return false;
        }
    }
</script>
<style>
    #header{
        background-color: #373d41;
        color: white;
        margin:0;
        height:60px;
    }
    #header h1{
        text-align: center;
        margin: 0;
    }
    #header>button{
        float:right;
        height: 30px;
        width: 60px;
        margin-top:-30px;
        border-radius: 50px;
        color: white;
        border: 0;
        background-color: #409EFF;
    }
    #header>button:hover{background-color: red}
</style>
<header id="header">
    <h1>品优购后台管理系统</h1>
    <button onclick="logout()">退出登录</button>
</header>
